package forum.dao;

import forum.entities.Entity;
import forum.exceptions.CreateExistingEntityException;

import java.math.BigInteger;

public interface GenericDAO<T extends Entity> {

    T create();

    T read(BigInteger id);

    void update(T entity) throws CreateExistingEntityException;

    void delete(BigInteger id);

}
